// ignore_for_file: file_names

import 'package:flutter/material.dart';

class TextComp extends StatelessWidget {
  const TextComp({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text('Text组件'),
          backgroundColor: Colors.red,
        ),
        body: const Text('《春宵》 苏轼 \n 春宵一刻值千金，花有清香月有阴。\n 歌管楼台声细细，秋千院落夜沉沉。',
            style: TextStyle(
                color: Colors.lightBlue,
                fontSize: 20,
                fontStyle: FontStyle.italic),
            textAlign: TextAlign.center,
            maxLines: 3,
            overflow: TextOverflow.ellipsis));
  }
}
